<?php


namespace app\common\model;


use think\Model;

class UserTaskModel extends Model {

    public function user() {
        return $this->hasOne(UserModel::class, 'id', 'uid')->field("id, nick_name");
    }

    public function task() {
        return $this->hasOne(TaskModel::class, 'id', 'task_id');
    }

}